home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Inspectors / NewInspector / NewInspector.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  74 lines

  1.  
  2. /*  NewInspector.h v1.1b
  3. *
  4. *  This is a generic Inspector Class.  For a description, see the man page.
  5. *  
  6. *  Imran Qureshi
  7. *
  8. *  11/5/91
  9. *
  10. */
  11.  
  12. #import <objc/Object.h>
  13. #import <objc/List.h>
  14. #import <appkit/Application.h>
  15.  
  16. @interface NewInspector:Object
  17. {
  18.     id    InspectorPanel;
  19.     id    thePopUpListButton;
  20.     id    thePopUpList;
  21.     id    InspectorBox;  /*  Box which will hold the views assigned to it */
  22.     
  23.     List    *ViewsList;
  24.     List    *SupervisorList;
  25. }
  26.  
  27. /* Creates a new Inspector
  28.  */
  29. + new;
  30.   
  31.  /* initializes a new Inspector created with new
  32.  * do not use [[NewInspector alloc] init] to get a NewInspector.
  33.  * instead use +new.
  34.  */
  35. - init;
  36. -free;
  37.  
  38.  /* return the InspectorPanel of class "Panel".
  39.   * Can be used for adjusting the size and place of the Inspector Panel.
  40.   */
  41. -inspectorPanel;
  42.  
  43.  /* show/hide the Inspector Panel.
  44.  */
  45. - orderFrontPanel:sender;
  46. - orderBackPanel:sender;
  47.  
  48.   /*  set the Title of the Inspector Panel.
  49.   */
  50. -setTitle:(char *)theTitle;
  51.  
  52.  /*  Add a View "aView". add a button "Name" to the popuplist. and set
  53.  *  "aSupervisor" as the object to get "windowDidUpdate:" message
  54.  */
  55. -addView:aView withName:(char *)Name withSupervisor:(id)aSupervisor;
  56.  
  57.  /* remove the button and view corresponding to "Name".
  58.  */
  59. -remove:(char *)Name;
  60.  
  61.  /* show the button and view corresponding to "Name"
  62.  */
  63. -show:(char *)Name;
  64.  
  65.  /* send an windowDidUpdate: message to all Supervisors
  66.  */
  67. -updateDisplay;
  68. - windowDidUpdate:sender;
  69.  
  70.  /* PRIVATE */
  71. -toggleInspectorPanels:sender;
  72.  
  73. @end
  74.